package com.ruoyi.group.mapper;

import com.ruoyi.group.domain.RepairOrderTransfer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RepairOrderTransferMapper {

    List<RepairOrderTransfer> selectTransferList(RepairOrderTransfer repairOrderTransfer);
    //转接工单详情，通过工单编号查找
    RepairOrderTransfer findByOrderNo(String orderNo);
    //同意转接，修改status = 2,dept_receive,dept_receive_p
    int updateTansfer(@Param("deptName") String deptName,@Param("nickName") String nickName,@Param("orderNo") String orderNo);
    //拒绝转接，修改status = 3
    int updateRefuse(String orderNo);
}
